<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    
    <h:body>
        <ui:composition>
            <table width="100%" cellspacing="20">
                <tr>
                    <td width="50%" height="40%">
                        <p:panel header="User's Profile">
                            <table border="1" height="100px" width="100%">
                                <tr>
                                    <td width="30%"><h:outputText value="User Name :"/></td>
                                    <td width="30%"><h:outputText value="#{preCompany.com.uid}"/></td>                        
                                </tr>
                                <tr>
                                    <td><h:outputText value="Password :"/></td>
                                    <td><h:outputText value="*********"/></td>                        
                                </tr>
                                <tr>
                                    <td><h:outputText value="Email :"/></td>
                                    <td><h:outputText value="#{preCompany.com.email}"/></td>                        
                                </tr>                  
                            </table>                
                        </p:panel>
                    </td>
                    <td width="50%" height="40%">
                        <p:panel header="Company's Profile">
                            <table border="1" height="100px" width="100%">
                                <tr>
                                    <td width="30%"><h:outputText value="Company Name :"/></td>
                                    <td width="30%"><h:outputText value="#{preCompany.com.companyname}"/></td>                        
                                </tr>
                                <tr>
                                    <td><h:outputText value="Designation :"/></td>
                                    <td><h:outputText value="#{preCompany.com.designation}"/></td>                        
                                </tr>
                                <tr>
                                    <td><h:outputText value="Fax :"/></td>
                                    <td><h:outputText value="#{preCompany.com.fax}"/></td>                        
                                </tr>                  
                            </table>                
                        </p:panel>
                    </td>
                </tr>
                <tr>
                    <td width="50%" height="40%" colspan="2">
                        <p:panel header="Personal Information" style="width: 50%">
                            <table border="1" width="100%" height="400px">
                                <tr>
                                    <td width="50%"><h:outputText value="Contact Person :"/></td>
                                    <td width="50%"><h:outputText value="#{preCompany.com.contact}"/></td>                        
                                </tr>
                                <tr>
                                    <td><h:outputText value="Mobile Number :"/></td>
                                    <td><h:outputText value="#{preCompany.com.mobile}"/></td>                        
                                </tr>
                                <tr>
                                    <td><h:outputText value="TelePhone Number :"/></td>
                                    <td><h:outputText value="#{preCompany.com.tele}"/></td>                        
                                </tr>                  
                                <tr>
                                    <td><h:outputText value="City :"/></td>
                                    <td><h:outputText value="#{preCompany.gCityName(preCompany.com.accId)}"/></td>                        
                                </tr>                  
                                <tr>
                                    <td><h:outputText value="Address :"/></td>
                                    <td><h:outputText value="#{preCompany.com.address}"/></td>                        
                                </tr>                  
                                <tr>
                                    <td><h:outputText value="Gender :"/></td>
                                    <td><h:outputText value="#{preCompany.getgenderName(preCompany.com.gender)}"/></td>                        
                                </tr>
                                
                            </table>              
                        </p:panel>
                    </td>                    
                </tr>
                <tr>
                    <td colspan="3">
                        <center>
                            <h:form><p:commandButton value="Edit My Account" update="cen" action="#{navigate.toeditprecom}"/></h:form>
                        </center>
                    </td>
                </tr>
            </table>
       </ui:composition>  
    </h:body>
</html>


